# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  # Return a link for use in the layot navigation.
  def nav_link(text, controller, action="index")
    link_to_unless_current text, :controller => controller, :action => action
  end
  
  def logged_in?
    not session[:user_id].nil?
  end
  
end
